<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"yoursite.com","root":"/","scheme":"Muse","version":"7.7.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="title：笔记整理（无分类） date：2020-4-5 图片题分析步骤：给到图片要分析图片内容、属性中有无有效信息，若其表面上都没有，则有两个选择：使用binwalk或者stepslove来查看一下。 linux下将01串转化成ASCII码解题遇到：linux下将01串转化成ASCII码，方法：写个脚本，每八位一转化 &amp;&amp;、()、||决定linux命令的执行顺序在执行某个命令时">
<meta property="og:type" content="article">
<meta property="og:title" content="笔记整理（无分类）">
<meta property="og:url" content="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/index.html">
<meta property="og:site_name" content="tender healer">
<meta property="og:description" content="title：笔记整理（无分类） date：2020-4-5 图片题分析步骤：给到图片要分析图片内容、属性中有无有效信息，若其表面上都没有，则有两个选择：使用binwalk或者stepslove来查看一下。 linux下将01串转化成ASCII码解题遇到：linux下将01串转化成ASCII码，方法：写个脚本，每八位一转化 &amp;&amp;、()、||决定linux命令的执行顺序在执行某个命令时">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/image-20200405232419603.png">
<meta property="og:image" content="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/image-20200406213825918.png">
<meta property="og:image" content="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/typora%E5%9B%BE%E7%89%87/image-20200406221336229.png">
<meta property="article:published_time" content="2020-04-05T15:44:15.912Z">
<meta property="article:modified_time" content="2020-04-06T14:54:41.928Z">
<meta property="article:author" content="YQ Cong">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/image-20200405232419603.png">

<link rel="canonical" href="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome: false,
    isPost: true
  };
</script>

  <title>笔记整理（无分类） | tender healer</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">tender healer</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
        <p class="site-subtitle">Recording learning gains</p>
  </div>

  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
  </ul>

</nav>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="YQ Cong">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="tender healer">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          笔记整理（无分类）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-04-05 23:44:15" itemprop="dateCreated datePublished" datetime="2020-04-05T23:44:15+08:00">2020-04-05</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-04-06 22:54:41" itemprop="dateModified" datetime="2020-04-06T22:54:41+08:00">2020-04-06</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>title：笔记整理（无分类）</p>
<p>date：2020-4-5</p>
<h1 id="图片题分析步骤："><a href="#图片题分析步骤：" class="headerlink" title="图片题分析步骤："></a>图片题分析步骤：</h1><p>给到图片要分析图片内容、属性中有无有效信息，若其表面上都没有，则有两个选择：使用binwalk或者stepslove来查看一下。</p>
<h1 id="linux下将01串转化成ASCII码"><a href="#linux下将01串转化成ASCII码" class="headerlink" title="linux下将01串转化成ASCII码"></a>linux下将01串转化成ASCII码</h1><p>解题遇到：linux下将01串转化成ASCII码，方法：写个脚本，每<strong>八位一转化</strong></p>
<h1 id="amp-amp-、-、-决定linux命令的执行顺序"><a href="#amp-amp-、-、-决定linux命令的执行顺序" class="headerlink" title="&amp;&amp;、()、||决定linux命令的执行顺序"></a>&amp;&amp;、()、||决定linux命令的执行顺序</h1><p>在执行某个命令时，有时需要依赖前面的命令是否执行成功。</p>
<h2 id="1、-amp-amp"><a href="#1、-amp-amp" class="headerlink" title="1、&amp;&amp;"></a>1、&amp;&amp;</h2><p>1.格式</p>
<p>  command1 &amp;&amp; command2</p>
<p>2.含义</p>
<p>  &amp;&amp;左边的command1执行成功(返回0表示成功)后，&amp;&amp;右边的command2才能被执行。</p>
<p>3.实例</p>
<p>(1)当把文件sql.txt复制一份为sql.bak.txt成功，然后显示副本sql.bak.txt</p>
<p>[root@RHEL5 shell]# cp sql.txt sql.bak.txt &amp;&amp; cat sql.bak.txt </p>
<h2 id="2、"><a href="#2、" class="headerlink" title="2、||"></a>2、||</h2><p>1.格式</p>
<p>  command1 || command2</p>
<p>2.含义</p>
<p>  如果||左边的command1执行失败(返回1表示失败)，就执行&amp;&amp;右边的command2。</p>
<p>3.实例</p>
<p>(1)打印1111.txt的第一列内容，若执行不成功则执行显示facebook.txt的内容</p>
<p>[root@RHEL5 shell]# awk ‘{print $1}’ 1111.txt || cat facebook.txt  </p>
<p>awk: cmd. line:1: fatal: cannot open file `1111.txt’ for reading (No such file or directory)</p>
<p>google 110 5000</p>
<p>baidu 100 5000</p>
<p>guge 50 3000</p>
<p>sohu 100 4500</p>
<p>(2)当打印1111.txt的第一列内容得命令被成功执行，则不执行打印facebook.txt的命令</p>
<p>[root@RHEL5 shell]# awk ‘{print $1}’ facebook.txt || cat facebook.txt</p>
<p>google</p>
<p>baidu</p>
<p>guge</p>
<p>sohu</p>
<h2 id="3、（）"><a href="#3、（）" class="headerlink" title="3、（）"></a>3、（）</h2><p>如果想执行几个命令，则需要用命令分隔符<strong>分号</strong>隔开每个命令，并使用圆括号()把所有命令组合起来。</p>
<p>结合||和&amp;&amp;可以实现复杂的功能。</p>
<p>1.格式(command1；command2；command3;…)</p>
<p>2.实例</p>
<p>(1)使用多个命令，如果sort命令执行成功，先将排序后的文件备份到/root/backup/目录下，然后再打印</p>
<p>sort facebook.txt &gt; facebook.txt.sorted &amp;&amp; (cp  facebook.txt.sorted /root/backup/facebook.txt.sorted;lp  facebook.txt.sorted)</p>
<p>(2)打印facebook.txt文件失败就发邮件告知root用户，并关机</p>
<p>lp facebook.txt.sorted ||(echo “It was not submitted succuessfully” | mail root;init 0) </p>
<h1 id="touch、gedit（含一点脚本内容）"><a href="#touch、gedit（含一点脚本内容）" class="headerlink" title="touch、gedit（含一点脚本内容）"></a>touch、gedit（含一点脚本内容）</h1><p><img src="/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/image-20200405232419603.png" alt="image-20200405232419603"></p>
<p>（图示的touch命令是创建文件，gedit命令是启动GNOME桌面环境下的<a href="https://www.baidu.com/s?wd=文本编辑器&tn=SE_PcZhidaonwhc_ngpagmjz&rsv_dl=gh_pc_zhidao" target="_blank" rel="noopener">文本编辑器</a>gedit。）  （1.py为文件名）写个<strong>脚本</strong>可以这样操作</p>
<h1 id="解压压缩文件"><a href="#解压压缩文件" class="headerlink" title="解压压缩文件"></a>解压压缩文件</h1><p>打开终端，输入uzip.py 然后把图片进去，就可以出现下图中py之后的那一串</p>
<p><img src="/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/image-20200406213825918.png" alt="image-20200406213825918"></p>
<p>可见解压出了8个文件和一个gif图</p>
<h1 id="base64编码之后的字符串的特点："><a href="#base64编码之后的字符串的特点：" class="headerlink" title="base64编码之后的字符串的特点："></a>base64编码之后的字符串的特点：</h1><ul>
<li>字符串只可能包含A-Z，a-z，0-9，+，/，=字符 </li>
<li>字符串长度是4的倍数 </li>
<li>=只会出现在字符串最后，可能没有或者一个等号或者两个等号</li>
</ul>
<p>例：<img src="/2020/04/05/%E7%AC%94%E8%AE%B0%E6%95%B4%E7%90%86%EF%BC%88%E6%97%A0%E5%88%86%E7%B1%BB%EF%BC%89/typora%E5%9B%BE%E7%89%87/image-20200406221336229.png" alt="image-20200406221336229"></p>

    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/04/04/python%E5%88%87%E7%89%87/" rel="prev" title="python切片">
      <i class="fa fa-chevron-left"></i> python切片
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/04/06/python%E6%9C%89%E5%85%B3/" rel="next" title="python有关">
      python有关 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#图片题分析步骤："><span class="nav-number">1.</span> <span class="nav-text">图片题分析步骤：</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#linux下将01串转化成ASCII码"><span class="nav-number">2.</span> <span class="nav-text">linux下将01串转化成ASCII码</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#amp-amp-、-、-决定linux命令的执行顺序"><span class="nav-number">3.</span> <span class="nav-text">&amp;&amp;、()、||决定linux命令的执行顺序</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1、-amp-amp"><span class="nav-number">3.1.</span> <span class="nav-text">1、&amp;&amp;</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2、"><span class="nav-number">3.2.</span> <span class="nav-text">2、||</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3、（）"><span class="nav-number">3.3.</span> <span class="nav-text">3、（）</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#touch、gedit（含一点脚本内容）"><span class="nav-number">4.</span> <span class="nav-text">touch、gedit（含一点脚本内容）</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#解压压缩文件"><span class="nav-number">5.</span> <span class="nav-text">解压压缩文件</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#base64编码之后的字符串的特点："><span class="nav-number">6.</span> <span class="nav-text">base64编码之后的字符串的特点：</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">YQ Cong</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">13</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">YQ Cong</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v4.2.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> v7.7.1
  </div>

        








      </div>
    </footer>
  </div>

  
  
  <script color='0,0,255' opacity='0.5' zIndex='-1' count='99' src="/lib/canvas-nest/canvas-nest.min.js"></script>
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
